package com.dys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className: com.dys.controller.RequestMappingController
 * @description: com.dys.controller
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/23 22:55
 */
@Controller
@RequestMapping(value = "/dys")
public class RequestMappingController {

    @RequestMapping("/reqUrl.do")
    public String requestMappingUrl() {
        System.out.println("requestMappingUrl 请求路径......");
        return "/requestMappingUrl.jsp";
    }

    /**
     * 千万注意资源是否加载,如果没有,删除target重新编译即可
     *
     * @return
     */
    @RequestMapping("/reqWebInfUrl.do")
    public String reqWebInfUrl() {
        System.out.println("reqWebInfUrl 请求路径......");
        return "/WEB-INF/view/webInf.jsp";
        // 直接返回这个就需要在springmvc.xml中配置视图解析器
        // return "/webInf";
    }
}
